﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<web_uchet.Views.Shared.TemplateClasses.DateTimeTemplateViewData>" %>

<label for="<%= Model.ID %>"><%=Model.LabelText %></label>
<%= Html.TextBox( Model.Name, String.Format("{0:dd-MM-yyyy HH:mm}", Model.Value), new { @class = "input-box", id = Model.ID })%>
<%= Html.ValidationMessage(Model.Name, "*") %>

<script type="text/javascript">
    jQuery("#<%= Model.ID %>").mask("99-99-9999 99:99");
</script>